﻿using EntityMode;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace API.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class InterviewController : ControllerBase
    {
        private readonly ApiDBContext db;
        public InterviewController(ApiDBContext context)
        {
            db = context;
        }

        [HttpGet]
        public List<Employee> GetAll()
        {
            return db.Employee.ToList();
        }

        [HttpGet]
        public List<People> GetAllShang()
        {
            return db.people.ToList();
        }
    }
}
